﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using FazaDemo.BL.InterfaceDomain;
using Microsoft.AspNet.SignalR.Client;
using Awesomium.Core;
using Microsoft.Owin.Hosting;
using Newtonsoft.Json;
using FazaDemo.BL.SubDomains;

namespace FazaDemo.PL.Wpf
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class WorkArea : Window
    {

        private HubConnection _hubCon;

        private IHubProxy _hubProxy;

        public WorkArea()
        {
            InitializeComponent();
            Cont.BeginInit();
            Cont.Source = "http://172.19.195.10:8580/Shell/Content".ToUri();
            Cont.EndInit();
        }

        public static string SignalrAddress
        {
            get { return "http://172.19.195.10:8780/"; }
        }

        public Menu P_MainMenu
        {
            get
            {
                return MainMenu;
            }
        }

        public event EventHandler<EventArgs> ViewEvent;

        private void On_TargetURLChanged(object sender, UrlEventArgs e)
        {
            if (ViewEvent != null)
                ViewEvent(sender, e);
        }

    }
}
